package com.gem.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gem.back.entity.AoaPosition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */
@Repository
public interface AoaPositionMapper extends BaseMapper<AoaPosition> {
    /**
     * 根据姓名查找职位
     */
    AoaPosition findPositionByName(@Param("username") String userName);
    /**
     * 根据主键查询记录
     */
    AoaPosition selectOnePositionById(Integer id);
}
